<%@ page import="com.grouplay.entity.User" %><%--
  Created by IntelliJ IDEA.
  User: YYW
  Date: 2020/5/30
  Time: 13:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String name = "";
    if (session.getAttribute("user") == null){
        out.print("<h3>\n" +
                "    未登录\n" +
                "</h3>");
        return;
    } else {
        name = ((User) session.getAttribute("user")).getName();
    }
%>
<h4>当前用户名：<%=name%></h4>
<form class="form-search form-inline" id="setNewNameForm" action="./user/setNewName" method="get"  onsubmit="return setNewName();">
    <input class="input-medium search-query" name="name" type="text" placeholder="请输入修改后的用户名" required/>
    <button type="submit" class="btn">修改</button>
</form>




